home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCM_104_Window < prev    next >
Encoding:
Text File  |  1992-04-08  |  1.1 KB  |  41 lines

  1. // %filename% -- window
  2. // Created %date% %time% by AppMaker
  3.  
  4. //    For most applications, your window will have custom view classes.
  5. //    This module provides a convenient place to put these classes.
  6. //    If you specify a custom classname for any view item, AppMaker will
  7. //    generate some skeleton code for that custom class.  It generates
  8. //    a declaration of that class with a fields method; it generates
  9. //    the body of the fields method; and AppMaker generates code for
  10. //    dead strip suppression.  For some view items, AppMaker generates
  11. //    other methods it knows you will need; for instance, for a
  12. //    TTextListView, AppMaker generates a GetItemText method.
  13.  
  14. #include "U%windname%.h"
  15. #ifndef __TYPES__
  16.     #include <Types.h>
  17. #endif
  18. #ifndef __PACKAGES__
  19.     #include <Packages.h>
  20. #endif
  21. #include "ResourceDefs.h"
  22.  
  23. %for each item gen classMethods%
  24. #pragma segment AOpen
  25. /*----------*/
  26. TWindow     *New%windname%        (TDocument        *itsDocument)
  27. {
  28.     TWindow            *theWindow;
  29.     TObject            *dummy;
  30.  
  31.     theWindow = NewTemplateWindow (k%windname%ID, itsDocument);
  32.  
  33.     if (gDeadStripSuppression) {
  34.         %for each item gen gDeadStripSuppression%
  35.  
  36.     }
  37.     return (theWindow);
  38. } /* New%windname% */
  39.  
  40. /* U%windname% */
  41.